package com.wanxi;

public class Word {

    private String wordName;
    private String partOfSpeech;
    private String meaning;
    private String example;

    public Word() {
    }

    public Word(String wordName, String partOfSpeech, String meaning, String example) {
        this.wordName = wordName;
        this.partOfSpeech = partOfSpeech;
        this.meaning = meaning;
        this.example = example;
    }

    public String getWordName() {
        return wordName;
    }

    public void setWordName(String wordName) {
        this.wordName = wordName;
    }

    public String getPartOfSpeech() {
        return partOfSpeech;
    }

    public void setPartOfSpeech(String partOfSpeech) {
        this.partOfSpeech = partOfSpeech;
    }

    public String getMeaning() {
        return meaning;
    }

    public void setMeaning(String meaning) {
        this.meaning = meaning;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getInfo(){
        return "词： " + wordName + "\n" + "词性： " + partOfSpeech + "\n" + "词义： " + meaning + "\n" + "例句： " + example;
    }
}
